from django.shortcuts import render
from django.views.generic import View
from .tasks import add


class BackendIndex(View):
    """任务队列首页"""
    def get(self, request, *args, page=1, **kwargs):
        add.delay(2, 3)
        return render(request, 'index.html')